﻿<Page x:Class="PTCScheduler.EditMenu_Pages.UpdateTeacher_Page"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="480" d:DesignWidth="825"
	Title="Update Teacher">

    <Grid>
        <Grid>
            <Grid Style="{StaticResource PageStyle}">
                <Label Content="First Name:" Height="28" HorizontalAlignment="Left" Margin="26,85,0,0" Name="lblStudentFName" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="115,87,0,0" Name="txtTeacherFName" VerticalAlignment="Top" Width="170" MaxLength="20" />
                <Label Content="Last Name:" Height="28" HorizontalAlignment="Left" Margin="24,128,0,0" Name="lblStudentLName" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="115,130,0,0" Name="txtTeacherLName" VerticalAlignment="Top" Width="170" MaxLength="20" />
                <Label Content="Email:" Height="28" HorizontalAlignment="Left" Margin="26,171,0,0" Name="lblEmail" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="115,173,0,0" Name="txtTeacherEmail" VerticalAlignment="Top" Width="170" MaxLength="40" />
                <Button Click="btnUpdate_Click" Content="Update" FontSize="14" Height="40" HorizontalAlignment="Left" Margin="195,215,0,0" Name="btnSubmit" Style="{StaticResource ButtonStyle}" VerticalAlignment="Top" Width="90" />
                <TextBlock Background="CornflowerBlue" FontFamily="Arial" FontStretch="Normal" FontWeight="Bold" Foreground="White" Height="56" HorizontalAlignment="Left" Name="textBlock1" Text="Please select teacher to edit from table on right. Edit information and click update button when done." TextTrimming="None" TextWrapping="Wrap" VerticalAlignment="Top" Width="306" Style="{StaticResource InstructionsStyle}" />
            </Grid>
            <Grid Margin="306,0,0,0" Background="White">
                <DataGrid Name="dataGridTeacher" Style="{StaticResource DataGridViewStyle}" SelectionChanged="dataGridTeacher_SelectionChanged" Margin="6,40,26,27" />
                <Label Content="Updated Record: " Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="lblUpdatedRecord" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
                <Label Content="Teacher has been updated successfully." Foreground="DarkGreen" Height="28" HorizontalAlignment="Left" Margin="139,6,0,0" Name="lblTeacherSuccess" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
                <Label Content="Please enter a valid email. example@example.com" Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="139,6,0,0" Name="lblValidEmail" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
                <Label Content="Please ensure all information is provided. " Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="139,6,0,0" Name="lblProvideAllInfo" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
                <Label Content="No teachers found." Height="28" HorizontalAlignment="Left" Margin="20,145,0,0" Name="lblNoTeachers" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
                <Label Content="Teacher email already exists." Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="139,6,0,0" Name="lblTeacherExist" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
            </Grid>
        </Grid>
    </Grid>
</Page>
